package com.xiaoyu.lanling.feature.chat.model.message

import com.xiaoyu.im.datamodel.AppMessage
import com.xiaoyu.lanling.feature.chat.viewholder.ChatViewHolderManager

class ChatMessageReceiveTextItem(message: AppMessage) : ChatMessageReceiveBaseItem(message) {

    val text: String = message.payload.text
    val rewardInfo = RewardInfo(attrs.optJson("rewardInfo"))

    override val childrenViewType: Int
        get() = ChatViewHolderManager.TYPE_RECEIVE_TEXT
}